package com.pro.service;

import com.pro.mapper.CouponUsedMapper;
import com.pro.pojo.Coupon;
import com.pro.pojo.CouponUsed;
import com.pro.pojo.JsBeforeUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * auther 杨沛琪
 * createDate 2022/1/12
 */
public interface CouponUsedService {
    //查询用户优惠券使用记录
    public List<JsBeforeUser> getTable();
    //查询用户优惠券使用记录
    public List<String> getTableByAnUsedState(@Param("userId")Integer userId,@Param("usedState")Integer usedState);
    //查询已过期
    public List<String> getTableByEndDate(@Param("userId")Integer userId);
    //筛选查询
    public List<CouponUsed> queryCouponUsed(@Param("account")String account, @Param("nickname")String nickname);
    //添加优惠券使用记录
    public boolean addUserCouponUsed(CouponUsed couponUsed,Coupon coupon) throws Exception;
}
